package tomoto.util;

/**
 * Helper utilities to operate int value bitwise.
 * 
 * @author Tomoto Shimizu Washio
 *
 */
public class BitUtil {
	@Deprecated
	private BitUtil() {}
	
	/**
	 * Returns true if all the specified bits are set.
	 * 
	 * @param value value to be tested
	 * @param bitmask bit mask to test with
	 * @return true if all bits set in bitmask are also set in value
	 */
	public static boolean isAllBitsSet(int value, int bitmask) {
		return (value & bitmask) == bitmask;
	}
	
}
